package com.danny.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CheckIn {
    int checkinNo;
    int roomNo;
    String rtype;
    int price;
    int newPrice;
    int deposit=100;
    String checkinName;
    String idType;
    String idNo;
    String tel;
    Timestamp reachTime;
    Timestamp leftTime;
    int people;
    public CheckIn(RoomReserve roomReserve) {
        roomNo=roomReserve.getRoomNo();
        rtype=roomReserve.getRoomType();
        price=roomReserve.getPrice();
        checkinName=roomReserve.getAppName();
        idType=roomReserve.getIdType();
        idNo=roomReserve.getIdNo();
        tel=roomReserve.getTel();
        people=roomReserve.getPeople();
    }
    @Override
    public String toString() {
        return "CheckIn{" +
                "checkinNo=" + checkinNo +
                ", roomNo=" + roomNo +
                ", rtype='" + rtype + '\'' +
                ", price=" + price +
                ", newPrice=" + newPrice +
                ", desposit=" + deposit +
                ", checkinName='" + checkinName + '\'' +
                ", idType='" + idType + '\'' +
                ", idNo='" + idNo + '\'' +
                ", tel='" + tel + '\'' +
                ", reachTime=" + reachTime +
                ", leftTime=" + leftTime +
                ", people=" + people +
                '}';
    }
}
